<!DOCTYPE HTML>
<html lang="zh-CN">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>upm.io</title>
        <link rel="stylesheet" href="assets/css/bootstrap.min.css" />
        <link rel="stylesheet" href="assets/js/libs/fancybox/jquery.fancybox.css" />
        <link rel="stylesheet" href="assets/css/main.css" />
    </head>
    <body class="page-project" data-page="project">
        <?php include("common-tpl/topnav.php") ?>
        <?php include("common-tpl/topstatus-project.php") ?>
        
        <div class="container ptm pbm">
            <!-- <div class="col-md-2">
                <div class="clearfix">
                    <div class="fn-left">
                        <h4>项目管理</h4>
                    </div>
                </div>
                <table class="table table-bordered">
                    <tr class="active">
                      <td><a href="project-list.php">项目清单</a></td>
                    </tr>
                    <tr>
                      <td><a href="project-create.php">创建项目</a></td>
                    </tr>
                </table>
            </div> -->
            <div class="col-md-12">
                <div class="row pbl">
                    <div class="col-md-12">
                        <div class="bg-gray mtsm mbsm control_bar">
                            <button class="btn btn-default" type="button" id="lockBtn" data-submit="lock" data-type="PUT">锁定</button>
                            <button class="btn btn-default" type="button" id="unlockBtn" data-submit="unlock" data-type="PUT">解锁</button>
                            <button class="btn btn-default" type="button" id="deployBtn" data-submit="deploy" data-type="PUT">部署</button>
                            <button class="btn btn-default" type="button" id="cancelBtn" data-submit="cancel" data-type="PUT">注销</button>
                            <button class="btn btn-default" type="button" id="deleteBtn" data-submit="delete" data-type="DELETE">删除</button>
                            <button class="btn btn-default" type="button" id="cleanBtn" data-submit="clean" data-type="PUT">清理</button>
                        </div>
                        
                        <table id="project_list" class="table table-bordered">
                            <thead>
                                <tr>
                                    <td><input class="checked_all mrs" id="checked_all" type="checkbox"><label for="checked_all">全选</label></td>
                                    <td>项目编号</td>
                                    <td>项目名称</td>
                                    <td>项目所属</td>
                                    <td>状态</td>
                                    <td>更新时间</td>
                                </tr>
                            </thead>
                            <tbody>
                            </tbody>
                        </table>
                        <script type="text/x-jquery-tmpl" id="projectListTemplate">
                            <tr>
                                <td><input class="form_checkbox mrs" data-projectid="${id}" data-code="${code}" data-name="${name}" type="checkbox"></td>
                                <td><a href="project-om.php?project_id=${id}">${code}</a></td>
                                <td>${name}</td>
                                <td>${owner}</td>
                                <td data-status="${status}">${status_t}</td>
                                <td>${create_date}</td>
                            </tr>
                        </script>

                    </div>
                    
                </div>
            </div>
        </div>

        <div class="modal fade" id="control_pop" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title"><span class="text_type"></span>项目清单</h4>
                    </div>
                    <div class="modal-body">
                        <div class="row">
                            <div class="col-md-12">
                                <div class="control_list_wrap">
                                    <table id="control_list" class="table table-bordered">
                                        <tbody>
                                        </tbody>
                                    </table>
                                </div>
                                <div class="clearfix pbm">
                                    <button id="submit_btn" class="btn btn-default btn-primary" type="button">确定</button>
                                    <button id="cancel_btn" class="btn btn-default" type="button" data-dismiss="modal">取消</button>
                                </div>
                                <script type="text/x-jquery-tmpl" id="controlTemplate">
                                    <tr>
                                        <td>项目编号:</td>
                                        <td><span data-projectid="${projectid}">${code}</span></td>
                                        <td>项目名称:</td>
                                        <td><span data-projectid="${projectid}">${name}</span></td>
                                    </tr>
                                </script>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>



        <?php include("common-tpl/bottomtpl.php") ?>

        <script src="assets/js/seajs/sea.js"></script>
        <script type="text/javascript">
            seajs.use('seajs/compass.js');
        </script>
    </body>
</html>
